package com.yogurt.edu.client;

import com.yogurt.utils.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Auther: 酸奶
 * @Date: 2020/10/23 16:24
 * @Description: hystrix熔断器，当远程调用失败，会执行实现类中的方法
 */
@Component
public class VodClientImpl implements VodClient{
    @Override
    public Result deleteVideo(String id) {
        return Result.error().message("触发熔断器,删除视频失败");
    }

    @Override
    public Result deleteBatchVideo(List<String> ids) {
        return Result.error().message("触发熔断器,批量删除视频失败");
    }
}
